-----------------------------------------------------------
--Archivo: decoder.vhd 			                 --
--Fecha de creación: 03/02/2011				 --
--Última fecha de modificación: 05/02/2011		 --
--Diseñador: Typson Sanchez				 --
--Diseño: Decodicador.				 	 --
--Propósito: Decodificador de 6bits a 64bits para el 	 --
--acceso al modulo de memoria				 --
-----------------------------------------------------------
library ieee; 
use ieee.std_logic_1164.all; 

entity decoder_6 is
port ( SEL : in std_logic_vector(5 downto 0);
outlet : out std_logic_vector(63 downto 0)
);
end decoder_6;


architecture arqdecoder of decoder_6 is
begin
with SEL select
outlet <= "0000000000000000000000000000000000000000000000000000000000000001" when "000000",
	  "0000000000000000000000000000000000000000000000000000000000000010" when "000001",
	  "0000000000000000000000000000000000000000000000000000000000000100" when "000010",
	  "0000000000000000000000000000000000000000000000000000000000001000" when "000011",
	  "0000000000000000000000000000000000000000000000000000000000010000" when "000100",
	  "0000000000000000000000000000000000000000000000000000000000100000" when "000101",
	  "0000000000000000000000000000000000000000000000000000000001000000" when "000110",
	  "0000000000000000000000000000000000000000000000000000000010000000" when "000111",
	  "0000000000000000000000000000000000000000000000000000000100000000" when "001000",
	  "0000000000000000000000000000000000000000000000000000001000000000" when "001001",
	  "0000000000000000000000000000000000000000000000000000010000000000" when "001010",
	  "0000000000000000000000000000000000000000000000000000100000000000" when "001011",
	  "0000000000000000000000000000000000000000000000000001000000000000" when "001100",
	  "0000000000000000000000000000000000000000000000000010000000000000" when "001101",
	  "0000000000000000000000000000000000000000000000000100000000000000" when "001110",
	  "0000000000000000000000000000000000000000000000001000000000000000" when "001111",
	  "0000000000000000000000000000000000000000000000010000000000000000" when "010000",
	  "0000000000000000000000000000000000000000000000100000000000000000" when "010001",
	  "0000000000000000000000000000000000000000000001000000000000000000" when "010010",
	  "0000000000000000000000000000000000000000000010000000000000000000" when "010011",
	  "0000000000000000000000000000000000000000000100000000000000000000" when "010100",
	  "0000000000000000000000000000000000000000001000000000000000000000" when "010101",
	  "0000000000000000000000000000000000000000010000000000000000000000" when "010110",
	  "0000000000000000000000000000000000000000100000000000000000000000" when "010111",
	  "0000000000000000000000000000000000000001000000000000000000000000" when "011000",
	  "0000000000000000000000000000000000000010000000000000000000000000" when "011001",
	  "0000000000000000000000000000000000000100000000000000000000000000" when "011010",
	  "0000000000000000000000000000000000001000000000000000000000000000" when "011011",
	  "0000000000000000000000000000000000010000000000000000000000000000" when "011100",
	  "0000000000000000000000000000000000100000000000000000000000000000" when "011101",
	  "0000000000000000000000000000000001000000000000000000000000000000" when "011110",
	  "0000000000000000000000000000000010000000000000000000000000000000" when "011111",
	  "0000000000000000000000000000000100000000000000000000000000000000" when "100000",
	  "0000000000000000000000000000001000000000000000000000000000000000" when "100001",
	  "0000000000000000000000000000010000000000000000000000000000000000" when "100010",
	  "0000000000000000000000000000100000000000000000000000000000000000" when "100011",
	  "0000000000000000000000000001000000000000000000000000000000000000" when "100100",
	  "0000000000000000000000000010000000000000000000000000000000000000" when "100101",
	  "0000000000000000000000000100000000000000000000000000000000000000" when "100110",
	  "0000000000000000000000001000000000000000000000000000000000000000" when "100111",
	  "0000000000000000000000010000000000000000000000000000000000000000" when "101000",
	  "0000000000000000000000100000000000000000000000000000000000000000" when "101001",
	  "0000000000000000000001000000000000000000000000000000000000000000" when "101010",
	  "0000000000000000000010000000000000000000000000000000000000000000" when "101011",
	  "0000000000000000000100000000000000000000000000000000000000000000" when "101100",
	  "0000000000000000001000000000000000000000000000000000000000000000" when "101101",
	  "0000000000000000010000000000000000000000000000000000000000000000" when "101110",
	  "0000000000000000100000000000000000000000000000000000000000000000" when "101111",
	  "0000000000000001000000000000000000000000000000000000000000000000" when "110001",
	  "0000000000000010000000000000000000000000000000000000000000000000" when "110010",
	  "0000000000000100000000000000000000000000000000000000000000000000" when "110011",
	  "0000000000001000000000000000000000000000000000000000000000000000" when "110100",
	  "0000000000010000000000000000000000000000000000000000000000000000" when "110101",
	  "0000000000100000000000000000000000000000000000000000000000000000" when "110110",
	  "0000000001000000000000000000000000000000000000000000000000000000" when "110111",
	  "0000000010000000000000000000000000000000000000000000000000000000" when "110111",
	  "0000000100000000000000000000000000000000000000000000000000000000" when "111000",
	  "0000001000000000000000000000000000000000000000000000000000000000" when "111001",
	  "0000010000000000000000000000000000000000000000000000000000000000" when "111010",
	  "0000100000000000000000000000000000000000000000000000000000000000" when "111011",
	  "0001000000000000000000000000000000000000000000000000000000000000" when "111100",
	  "0010000000000000000000000000000000000000000000000000000000000000" when "111101",
	  "0100000000000000000000000000000000000000000000000000000000000000" when "111110",
	  "1000000000000000000000000000000000000000000000000000000000000000" when others;
end arqdecoder;


